﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Facebook.Master" Inherits="System.Web.Mvc.ViewPage<SimplePoll.Web.Models.Poll>" %>

<asp:Content ID="CreateTitleContent" ContentPlaceHolderID="TitleContent" runat="server">
	Create
</asp:Content>

<asp:Content ID="CreateMainContent" ContentPlaceHolderID="MainContent" runat="server">
    <div class="wrap">
	    <div class="questions">
            <% using (Html.BeginForm("Create")) { %>
		        <img src="../../Content/images/simplePoll.jpg" alt="Simple Poll"/>
			
			    <div class="qmargin">
                    <p class="qt" style="margin-top:46px;">
                        <strong>Name your poll</strong>
                    </p>
                    <%= Html.TextBoxFor(m => m.Name, new { size="60"}) %>
                    <br /> 
                    <%=Html.ValidationMessageFor(m=>m.Name) %>
				    
				    <p class="qt" style="margin-top:15px;">
                        <strong>What would you like your poll to be about?</strong>
                    </p>
                    <%= Html.TextBoxFor(m => m.Question, new { size="60"}) %> 
                    <br /> 
                    <%=Html.ValidationMessageFor(m=>m.Question) %>

    			    <p class="qt" style="margin-top:15px;">
                        <strong>These will be your poll answers.</strong>
                    </p>
    				
    				<div class="qinput">
    					<%= Html.TextBoxFor(m => m.Answer1, new { size="60"}) %> 
                        <br /> 
                        <%=Html.ValidationMessageFor(m=>m.Answer1) %>
    				</div>
    				
    				<div class="qinput">
    					<%= Html.TextBoxFor(m => m.Answer2, new { size="60"}) %> 
                        <br /> 
                        <%=Html.ValidationMessageFor(m=>m.Answer2) %>
    				</div>
    				
    				<div class="qinput ">
    					<%= Html.TextBoxFor(m => m.Answer3, new { size="60"}) %> 
                        <br /> 
                        <%=Html.ValidationMessageFor(m=>m.Answer3) %>
    				</div>
    				<div class="clear" style="clear:both;"></div>
    		
    		        <input type="submit"  name="submit" value="Submit" class="submit-button"/>

	            </div>
	        
            <% } %>
	    </div>
    </div>
</asp:Content>
